package com.xinyue.user.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinyue.user.dao.MessageMapper;
import com.xinyue.user.pojo.Message;
import com.xinyue.user.service.MessageService;

@Service
public class MessageServiceImpl implements MessageService {

	@Autowired
	private MessageMapper messageMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) throws Exception {
		return 0;
	}

	@Override
	public int insert(Message record) throws Exception {
		return messageMapper.insert(record);
	}

	@Override
	public Message selectByPrimaryKey(Integer id) throws Exception {
		return null;
	}

	@Override
	public List<Message> selectAll() throws Exception {
		return null;
	}

	@Override
	public int updateByPrimaryKey(Message record) throws Exception {
		return 0;
	}

	@Override
	public Message selectById(Integer sid, Integer rid) throws Exception {
		return messageMapper.selectById(sid, rid);
	}

}
